package cn.hdu.liang.core.dao.user;

import java.util.List;

import cn.hdu.liang.core.bean.user.Buyer;
import cn.hdu.liang.core.query.user.BuyerQuery;

public interface BuyerDao {

    //添加
    public Integer addBuyer(Buyer buyer);

    //根据主键查找
    public Buyer getBuyerByKey(String id);

    //根据主键批量查找
    public List<Buyer> getBuyersByKeys(List<String> idList);

    //根据主键删除
    public Integer deleteByKey(String id);

    //根据主键批量删除
    public Integer deleteByKeys(List<String> idList);

    //根据主键更新
    public Integer updateBuyerByKey(Buyer buyer);

    //分页查询
    public List<Buyer> getBuyerListWithPage(BuyerQuery buyerQuery);

    //集合查询
    public List<Buyer> getBuyerList(BuyerQuery buyerQuery);

    //总条数
    public int getBuyerListCount(BuyerQuery buyerQuery);
}
